<%@ page contentType="text/html;charset=UTF-8" language="java"%>


<html>
<head>
<title></title>
</head>
<body>

	<div align="center">

		<table width="900">
			<tr>
                <br>
				<td><%@include file="top.jsp"%><br></td>
			</tr>
			<tr>
				<td width="80%" height="15" valig="top">

					<div style="float:right">
						<a href="<%=path%>/admin/books/bookadd.jsp">新建</a>
						<a href="<%=path%>/admin/books/booksearch.jsp">查询</a><br>
						<br>
					</div>

					<table class="table" width="80%">
						<col width="10%">
						<col width="20%">
						<col width="10%">
						<col width="18%">
						<col width="5%">
						<col width="5%">
						<col width="5%">
						<col width="20%">
						<tr class="title">
							<td style="text-align:center">书号</td>
							<td style="text-align:center">书名</td>
							<td style="text-align:center">作者</td>
							<td style="text-align:center">出版社</td>
							<td style="text-align:center">价格</td>
							<td style="text-align:center">数量</td>
							<td style="text-align:center">类型</td>
							<!-- 						<td style="text-align:center">位置</td> -->
							<td style="text-align:center">操作</td>
						</tr>

						<!-- 遍历开始 -->
						<s:iterator value="#session.searchResult" var="book">
							<tr class="list">
								<td style="text-align:center"><s:property
										value="#book.bookid" /></td>
								<td style="text-align:center"><s:property
										value="#book.bookname" /></td>
								<td style="text-align:center"><s:property
										value="#book.author" /></td>
								<td style="text-align:center"><s:property
										value="#book.publisherid" /></td>
								<td style="text-align:center"><s:property
										value="#book.price" /></td>
								<td style="text-align:center"><s:property
										value="#book.quantity" /></td>
								<s:if test="#book.type == 1">
									<td style="text-align:center">新书</td>
								</s:if>
								<s:elseif test="#book.type == 2">
									<td style="text-align:center">精品</td>
								</s:elseif>
								<s:elseif test="#book.type == 0">
									<td style="text-align:center">普通</td>
								</s:elseif>
								<!-- 							<td style="text-align:center"><s:property value="#book.place" /></td> -->
								<td style="text-align:center"><a
									href="<%=path%>/admin/BookAction_deleteBook.action?bookid=<s:property value="#book.bookid"/>"
									onclick="javascript: return confirm('真的要删除吗？');">删除</a> &nbsp;<a
									href="<%=path%>/admin/BookAction_modifyBook?bookid=<s:property value="#book.bookid"/>">修改</a>
								</td>
							</tr>
						</s:iterator>
					</table>
				</td>
			<tr>

			</tr>
		</table>
	</div>

</body>
</html>
